/**
 * 业户综合分析
 */
$(function(){
	EnterpriseAna.init();
});
var EnterpriseAna = {
	init: function(){
			var me = this;
			me.initheight();
			me.initEvent();
		},
	 initheight:function(){
		 var height = nav.whiceH[1] - 50;
		 $("#iframA").attr("height",height);
		 $("#iframQ").attr("height",height);
	 },
	 initEvent :function(){
		 $('.tabsHead').on('click','li',function(){
			var index = $(this).index();
			$('.tabsHead').find('li').removeClass('active');
			$(this).addClass('active');
			queryType = index;
			if (index==0) {
				$("#menuContAL").show();
				$("#menuContQC").hide();
				$("#AL").attr("class","fl active");
				$("#QC").attr("class","fl");
				$("#menuContQC").css("height",nav.whiceH[1]-40);
			}else if (index==1) {
				$("#menuContAL").hide();
				$("#menuContQC").show();
				$("#QC").attr("class","fl active");
				$("#AL").attr("class","fl");
				$("#menuContQC").css("height",nav.whiceH[1]-40);
				}
			});
	 },
	 reEnterpriseAnaAL :function(){
		$("#menuContAL").show();
		$("#menuContQC").hide();
		$("#AL").attr("class","fl active");
		$("#QC").attr("class","fl");
		$("#menuContQC").css("height",nav.whiceH[1]-40);
	},
};

